package xyz.funnygo.base;

import xyz.funnygo.app.AppManager;
import android.os.Bundle;
import android.widget.Toast;
import net.tsz.afinal.FinalActivity;

public class BaseActivity extends FinalActivity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		AppManager.getInstance().addActivity(this);
	}
	
	@Override
	protected void onDestroy() {
		super.onDestroy();
		AppManager.getInstance().finishActivity(this);
	}
	
	public void showToast(String msg) {
        Toast.makeText(this, msg, Toast.LENGTH_SHORT).show();
    }

}
